<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<%@include file="/common/common.jspf"%>
<script type="text/javascript" src="${ctx}/js/system/user/edit.js"></script>

<style type="text/css">
.col-sm-3 {
	width: 15%;
	float: left;
}

.col-sm-9 {
	width: 32%;
	float: left;
}
</style>
</head>
<body>
	<div class="l_err" style="width: 100%; margin-top: 2px;"></div>
	<form id="form" name="form" class="form-horizontal" method="post"
		  action="${ctx}/material/editMaterial.shtml">
		<input type="hidden" class="form-control" value="${user.matid}"
			   name="materialFormMap.matid" id="matid">
		<section class="panel panel-default">
			<div class="panel-body">
				<div class="form-group">
					<div class="col-sm-3">
						<label class="control-label">物料编号</label>
					</div>
					<div class="col-sm-9">
						<input type="text" class="form-control"
							   name="materialFormMap.matcode" id="matcode" value="${user.matcode}">

					</div>
					<div class="form-group">
						<label class="col-sm-3 control-label">物料名称</label>
						<div class="col-sm-9">
							<input type="text" class="form-control"
								   name="materialFormMap.matname"
								   id="matname" value="${user.matname}">
						</div>
					</div>
				</div>

				<div class="form-group">
					<label class="col-sm-3 control-label">物料规格</label>
					<div class="col-sm-9">
						<input type="text" class="form-control"
							   name="materialFormMap.matsize"
							   id="matsize" value="${user.matsize}">
					</div>

					<div class="form-group">
						<label class="col-sm-3 control-label">物料单位</label>
						<div class="col-sm-9">
							<select class="form-control" name="materialFormMap.matunitid" id="matunitid">
								<c:if test="${user.matunitid eq 1}">
									<option value="1" selected>条</option>
									<option value="2">克</option>
									<option value="3">KG</option>
									<option value="4">台</option>
									<option value="5">个</option>
								</c:if>
								<c:if test="${user.matunitid eq 2}">
									<option value="1" >条</option>
									<option value="2" selected>克</option>
									<option value="3">KG</option>
									<option value="4">台</option>
									<option value="5">个</option>
								</c:if>
								<c:if test="${user.matunitid eq 3}">
									<option value="1" >条</option>
									<option value="2">克</option>
									<option value="3" selected>KG</option>
									<option value="4">台</option>
									<option value="5">个</option>
								</c:if>
								<c:if test="${user.matunitid eq 4}">
									<option value="1" >条</option>
									<option value="2">克</option>
									<option value="3">KG</option>
									<option value="4" selected>台</option>
									<option value="5">个</option>
								</c:if>
								<c:if test="${user.matunitid eq 5}">
									<option value="1" >条</option>
									<option value="2">克</option>
									<option value="3">KG</option>
									<option value="4">台</option>
									<option value="5" selected>个</option>
								</c:if>

							</select>
						</div>
					</div>
				</div>


				<div class="form-group">
					<label class="col-sm-3 control-label">物料产地</label>
					<div class="col-sm-9">
						<input type="text" class="form-control"
							   name="materialFormMap.matarea"
							   id="matarea" value="${user.matarea}">
					</div>
					<div class="form-group">
						<label class="col-sm-3 control-label">物料类别</label>
						<div class="col-sm-9">
							<select class="form-control" name="materialFormMap.styleid" id="styleid">
								<option value="2">耗材</option>
							</select>
						</div>
					</div>
				</div>

				<div class="form-group">
					<label class="col-sm-3 control-label">物料价格</label>
					<div class="col-sm-9">
						<input type="text" class="form-control checkacc"
							   name="materialFormMap.matprice"
							   id="matprice" value="${user.matprice}">
					</div>
					<div class="form-group">
						<label class="col-sm-3 control-label">供应商</label>
						<div class="col-sm-9">
							<select class="form-control" name="materialFormMap.cliid" id="cliid">
								<c:if test="${user.cliid eq 2}">
									<option value="2" selected>Beckhoff</option>
									<option value="3">Baumueller包米勒</option>
									<option value="4">展会观众</option>
									<option value="5">合耕科技有限公司</option>
									<option value="6">空调配件有限公司</option>
								</c:if>


								<c:if test="${user.cliid eq 3}">
									<option value="2" >Beckhoff</option>
									<option value="3" selected>Baumueller包米勒</option>
									<option value="4">展会观众</option>
									<option value="5">合耕科技有限公司</option>
									<option value="6">空调配件有限公司</option>
								</c:if>

								<c:if test="${user.cliid eq 4}">
									<option value="2" >Beckhoff</option>
									<option value="3">Baumueller包米勒</option>
									<option value="4" selected>展会观众</option>
									<option value="5">合耕科技有限公司</option>
									<option value="6">空调配件有限公司</option>
								</c:if>

								<c:if test="${user.cliid eq 5}">
									<option value="2" >Beckhoff</option>
									<option value="3">Baumueller包米勒</option>
									<option value="4">展会观众</option>
									<option value="5" selected>合耕科技有限公司</option>
									<option value="6">空调配件有限公司</option>
								</c:if>

								<c:if test="${user.cliid eq 6}">
									<option value="2" >Beckhoff</option>
									<option value="3">Baumueller包米勒</option>
									<option value="4">展会观众</option>
									<option value="5" >合耕科技有限公司</option>
									<option value="6" selected> 空调配件有限公司</option>
								</c:if>
							</select>
						</div>
					</div>
				</div>

				<div class="form-group">
					<label class="col-sm-3 control-label">库存上限</label>
					<div class="col-sm-9">
						<input type="text" class="form-control"
							   name="materialFormMap.highNumber"
							   id="highNumber" value="${user.highNumber}">
					</div>

					<div class="form-group">
						<label class="col-sm-3 control-label">库存下限</label>
						<div class="col-sm-9">
							<input type="text" class="form-control"
								   name="materialFormMap.lowNumber"
								   id="lowNumber" value="${user.lowNumber}">
						</div>
					</div>
				</div>

				<div class="line line-dashed line-lg pull-in"></div>
				<footer class="panel-footer text-right bg-light lter">
					<button type="submit" class="btn btn-success btn-s-xs">提交</button>
				</footer>
		</section>
	</form>
	<script type="text/javascript">
		onloadurl();
	</script>
</body>
</html>